<template>
    <div>
        <h1>熊二</h1>
        <h1>熊大给{{info}}</h1>
        <XiaoXiongEr></XiaoXiongEr>
    </div>
</template>

<script>
import XiaoXiongEr from './XiaoXiongEr.vue';


export default{
    data(){
        return{
            info:'',
        };
    },
    mounted(){
        this.$eventBus.$on('fengmiguan',msg=>{
            console.log(msg);
            this.info = msg;
        });
    },
    components: { XiaoXiongEr }
};
</script>

<style lang="scss" scoped>

</style>